package com.basic.modules.nykf.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.basic.common.annotation.DictParam;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

@Data
@TableName("n_ykf_customer_shop")
public class CustomerShopEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId
    private long customerShopId;

    /**
     * 客户id
     */
    private long customerId;

    /**
     * 店铺名称
     */
    private String dpmc;

    /**
     * 店铺平台(字典)-val
     */
    private String dpptVal;

    /**
     * 店铺平台
     */
    @DictParam(field = "dpptVal", targetField = "dpptName", dictType = "platform")
    private String dpptName;

    /**
     * 店铺类目(字典)-val
     */
    private String dplmVal;

    /**
     * 店铺类目
     */
    @DictParam(field = "dplmVal", targetField = "dplmName", dictType = "shopType")
    private String dplmName;

    /**
     * 难易等级(字典)-val
     */
    private String nydjVal;

    /**
     * 难易等级
     */
    @DictParam(field = "nydjVal", targetField = "nydjName", dictType = "difficultyGrade")
    private String nydjName;

    /**
     * 店铺合作状态(字典)-val
     */
    private String dphzztVal;

    /**
     * 店铺合作状态
     */
    @DictParam(field = "dphzztVal", targetField = "dphzztName", dictType = "hzzt")
    private String dphzztName;

    /**
     * 店铺首次合作时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date dpschzsj;

    /**
     * 店铺链接
     */
    private String dplj;

    /**
     * 所属城市
     */
    private String sscs;

    /**
     * 剔除退款(字典)-val
     */
    private String tctkVal;

    /**
     * 剔除退款
     */
    @DictParam(field = "tctkVal", targetField = "tctkName", dictType = "tctk")
    private String tctkName;

    /**
     * 对接渠道(字典)-val
     */
    private String djqdVal;

    /**
     * 对接渠道
     */
    @DictParam(field = "djqdVal", targetField = "djqdName", dictType = "contactType")
    private String djqdName;

    /**
     * 业务对接人-userId
     */
    private Long ywdjrUserId;

    /**
     * 业务对接人-name
     */
    @TableField(exist = false)
    private String ywdjrName;

    /**
     * 客户姓名
     */
    private String khxm;

    /**
     * 手机号码
     */
    private String sjhm;

    /**
     * 微信
     */
    private String wx;

    /**
     * 企业微信
     */
    private String qywx;

    /**
     * 钉钉
     */
    private String dingding;

    /**
     * QQ
     */
    private String txqq;

    /**
     * 配合度(字典)-val
     */
    private String phdVal;

    /**
     * 配合度
     */
    @DictParam(field = "phdVal", targetField = "phdName", dictType = "fitRatio")
    private String phdName;

    /**
     * 店铺备注
     */
    private String dpbz;

    /**
     * 店铺业务列表
     */
    @TableField(exist = false)
    private List<CustomerShopBusinessEntity> customerShopBusinessList;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 创建时间
     */
    private Date updateTime;

}